package com.jwgf.objectbox;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

@Entity
public class HeadFaultRecord {

    @Id
    public long id;
    public int faultCode;
    public long start;
    public long end;
    public long duration;

    public HeadFaultRecord() {
    }

    public HeadFaultRecord(int faultCode, long start) {
        this.faultCode = faultCode;
        this.start = start;
        this.end = start;
        this.duration = 0;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getFaultCode() {
        return faultCode;
    }

    public void setFaultCode(int faultCode) {
        this.faultCode = faultCode;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }
}
